cmake_minimum_required(VERSION 3.14)

add_subdirectory(CVRPMDStructure)
add_subdirectory(ReadInstanceWrapper)
add_subdirectory(HybridAlgorithmForRoutesRelatedProblem)
add_subdirectory(SetPartitioning)

if(NOT TARGET jsoncpp_lib)
    add_subdirectory(jsoncpp)
    get_target_property(JSON_INC_PATH jsoncpp_lib INTERFACE_INCLUDE_DIRECTORIES)
    include_directories(${JSON_INC_PATH})
endif()

obtain_git_version(gitVersion ${CMAKE_CURRENT_SOURCE_DIR})
project(ReadLRPAndWriteResult VERSION ${gitVersion}
        DESCRIPTION "Define Parameters used in the MDVRP and LRP, read the parameter file, instance files and write results"
        LANGUAGES CXX)

add_directory_of_project(DIR SRC TEST)

if("^${CMAKE_SOURCE_DIR}" STREQUAL "^${PROJECT_SOURCE_DIR}")
    set_problem_type(MDVRP)
    set_pop_strategy(LargePopulation)
    set_is_dis_var_zero_move_used(FALSE)
    set_run_mode(RunModeDebug)
    set_sol_same_criterion(TRUE)
endif()
